/// msg : "操作成功"
/// code : 200
/// data : {"id":"","courseName":"在线课1","summary":"副标题","cover":"","price":0,"introduce":"课程介绍","teacherId":"","orgId":"","createTime":1637628847000,"modifyTime":1637975675000,"deleted":0}

class OnlineClassInfometion {
  OnlineClassInfometion({
    String? msg,
    int? code,
    Data? data,
  }) {
    _msg = msg;
    _code = code;
    _data = data;
  }

  OnlineClassInfometion.fromJson(dynamic json) {
    _msg = json['msg'];
    _code = json['code'];
    _data = json['data'] != null ? Data.fromJson(json['data']) : null;
  }
  String? _msg;
  int? _code;
  Data? _data;

  String? get msg => _msg;
  int? get code => _code;
  Data? get data => _data;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['msg'] = _msg;
    map['code'] = _code;
    if (_data != null) {
      map['data'] = _data?.toJson();
    }
    return map;
  }
}

/// id : ""
/// courseName : "在线课1"
/// summary : "副标题"
/// cover : ""
/// price : 0
/// introduce : "课程介绍"
/// teacherId : ""
/// orgId : ""
/// createTime : 1637628847000
/// modifyTime : 1637975675000
/// deleted : 0

class Data {
  Data({
    String? id,
    String? courseName,
    String? summary,
    String? cover,
    int? price,
    String? introduce,
    String? teacherId,
    String? orgId,
    int? createTime,
    int? modifyTime,
    int? deleted,
  }) {
    _id = id;
    _courseName = courseName;
    _summary = summary;
    _cover = cover;
    _price = price;
    _introduce = introduce;
    _teacherId = teacherId;
    _orgId = orgId;
    _createTime = createTime;
    _modifyTime = modifyTime;
    _deleted = deleted;
  }

  Data.fromJson(dynamic json) {
    _id = json['id'];
    _courseName = json['courseName'];
    _summary = json['summary'];
    _cover = json['cover'];
    _price = json['price'];
    _introduce = json['introduce'];
    _teacherId = json['teacherId'];
    _orgId = json['orgId'];
    _createTime = json['createTime'];
    _modifyTime = json['modifyTime'];
    _deleted = json['deleted'];
  }
  String? _id;
  String? _courseName;
  String? _summary;
  String? _cover;
  int? _price;
  String? _introduce;
  String? _teacherId;
  String? _orgId;
  int? _createTime;
  int? _modifyTime;
  int? _deleted;

  String? get id => _id;
  String? get courseName => _courseName;
  String? get summary => _summary;
  String? get cover => _cover;
  int? get price => _price;
  String? get introduce => _introduce;
  String? get teacherId => _teacherId;
  String? get orgId => _orgId;
  int? get createTime => _createTime;
  int? get modifyTime => _modifyTime;
  int? get deleted => _deleted;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['courseName'] = _courseName;
    map['summary'] = _summary;
    map['cover'] = _cover;
    map['price'] = _price;
    map['introduce'] = _introduce;
    map['teacherId'] = _teacherId;
    map['orgId'] = _orgId;
    map['createTime'] = _createTime;
    map['modifyTime'] = _modifyTime;
    map['deleted'] = _deleted;
    return map;
  }
}
